package com.qf.game;

/**
 * 魔法类
 */
public class Magic {
    private  String name;
    private  int grade;
    private  int magicDamage;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getGrade() {
        return grade;
    }

    public void setGrade(int grade) {
        this.grade = grade;
    }

    public int getMagicDamage() {
        return magicDamage;
    }

    public void setMagicDamage(int magicDamage) {
        this.magicDamage = magicDamage;
    }
    public int magicDamage(){
        return magicDamage*grade;
    }

    public Magic() {
    }

    public Magic(String name, int grade, int magicDamage) {
        this.name = name;
        this.grade = grade;
        this.magicDamage = magicDamage;
    }
    public int dealmagicDamage(){
        return magicDamage;
    }
    public  int dealmagicDamage(Master hero){
        return magicDamage;
    }
}
